package com.song.shop.test;


import java.util.Iterator;
import java.util.ServiceLoader;

/**
 * @author Song Yinghui
 * @date 2019/6/6
 * @Version 1.0
 */
public interface ImportCheck<T extends ImportMode> {
    static boolean doCheck(){
        ServiceLoader<ImportCheck> load = ServiceLoader.load(ImportCheck.class);
        Iterator<ImportCheck> iterator = load.iterator();
        while (iterator.hasNext()){
            ImportCheck importCheck = iterator.next();
            Class<?> superclass = importCheck.getClass().getSuperclass();
            System.out.println(superclass);
        }
        return true ;
    }
}
